package com.yugao.fintech.antelope.system.model.rqrs.log;

import com.yugao.fintech.framework.assistant.utils.exception.BizException;
import lombok.ToString;


@ToString
public class OperateLogDeleteReq {
    /**
     * 删除多少天之前的日志, 必须为负数
     */
    private Integer beforeDays;

    public void setBeforeDays(Integer beforeDays) {
        if (beforeDays > 0) {
            throw new BizException("删除前n天数日志, 天数必须为负数");
        }
        this.beforeDays = beforeDays;
    }

    public Integer getBeforeDays() {
        return beforeDays;
    }
}
